Xbasic

OBJECT.REFERENCE_EXPRESSION_GET Function

Syntax

Expression as C = .Reference_Expression_Get()

Description

Returns and expression that can be used to reconstruct the object.

The <OBJECT>.REFERENCE_EXPRESSION_GET() method applies to:

Alpha Anywhere (for <OBJECT> use the keyword "A5")
Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
Form Controls (for <OBJECT> use the <CONTROL> pointer or the address of the control)

The <OBJECT>.REFERENCE_EXPRESSION_GET() method returns the expression required to reconstruct a reference to the object.

Example

dim ptr as P
ptr = form.load("Travel Time")
? ptr.name() ? "Travel_Time"
? ptr.Reference_Expression_Get()
= ":Travel_Time.this"

Limitations

Desktop applications only.

See Also